class LawnMower extends GuaImage {
    static new(game) {
        let p = new this(game, 'lawn_mower')
        p.setup()
        return p
    }

    setup() {
        // row表示在草地的第几排
        this.row = -1
        this.cooldown = 5
        this.x = 190
        this.y = 110
        this.lawn_mower_speed = 1
        this.ready = false

    }

    debug() {
        this.lawn_mower_speed = config.lawn_mower_speed.value
    }

    draw() {
        super.draw()
    }

    remove() {
        this.scene.removeLawnMower(this)
    }

    update() {
        super.update()
        if (this.ready) {
            this.x += this.lawn_mower_speed
        }
    }

}